//
//  WJTableFooterView.m
//  weibo
//
//  Created by 王俊 on 16/1/8.
//  Copyright © 2016年 王俊. All rights reserved.
//

#import "WJTableFooterView.h"

@interface WJTableFooterView()
@property(nonatomic,strong) UILabel  *descLabel;
//@property(nonatomic,strong) UIRefreshControl  *refresh;
@end

@implementation WJTableFooterView

- (instancetype)initFooterView
{
    if (self = [super init]) {
        self.height = 30;
        self.width = SCNWDTH;
        self.descLabel = [[UILabel alloc]init];
        self.descLabel.text = @"上拉刷新更多";
        [self.descLabel sizeToFit];
        self.descLabel.center = self.center;
        [self addSubview:self.descLabel];
//        self.refresh = [[UIRefreshControl alloc]init];
//        self.refresh.x = CGRectGetMaxX(self.descLabel.frame),
//        self.refresh.centerY = self.descLabel.centerY;
//        [self addSubview:self.refresh];
    }
    
    return self;
    
}


- (void)show
{
    self.hidden = false;
//    [self.refresh beginRefreshing];
    
}

- (void)dismiss
{
//    [self.refresh endRefreshing];
    self.hidden = true;
    
}



@end
